package com.lhz.project.system.service.auth;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lhz.common.page.BaseQueryParam;
import com.lhz.project.system.model.entity.auth.Role;
import com.lhz.project.system.model.param.auth.RoleParam;

/**
 * @author LiHuaZhi
 * @since 2020-06-20 13:42:57
 */
public interface RoleService extends IService<Role> {

    Role selectByPrimaryKey(Integer id);

    Object listRole(BaseQueryParam param);

    void insert(RoleParam param);

    int updateByPrimaryKey(RoleParam param);

    int deletePhyByPrimaryKey(Integer id);

    /**
     * 查询菜单信息
     *
     * @param id
     * @return
     */
    Object getRoleMenuById(Integer id);

    /**
     * 查询数据权限
     *
     * @param id
     * @return
     */
    Object getRoleDeptById(Integer id);
}